﻿using CustomControlLib.Buttons;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;

namespace CustomControlLib.ComboxEx
{
    public class ComboxEx:ComboBox
    {
        static ComboxEx()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(ComboxEx), new FrameworkPropertyMetadata(typeof(ComboxEx)));
        }

        public static readonly DependencyProperty IconColorProperty =
          DependencyProperty.Register("IconColor", typeof(string), typeof(FontIconButton), new PropertyMetadata("#1E1A1A"));
        /// <summary>
        /// 按钮字体图标颜色
        /// </summary>
        public string IconColor
        {
            get { return (string)GetValue(IconColorProperty); }
            set { SetValue(IconColorProperty, value); }
        }

       
        /// <summary>
        /// 下拉图标背景颜色
        /// </summary>
        public string IconBackColor
        {
            get { return (string)GetValue(IconBackColorProperty); }
            set { SetValue(IconBackColorProperty, value); }
        }
        public static readonly DependencyProperty IconBackColorProperty =
        DependencyProperty.Register("IconBackColor", typeof(string), typeof(FontIconButton), new PropertyMetadata("#888585"));


       
        /// <summary>
        /// 鼠标移上背景颜色
        /// </summary>
        public string MouseOverColor
        {
            get { return (string)GetValue(MouseOverColorProperty); }
            set { SetValue(MouseOverColorProperty, value); }
        }
        public static readonly DependencyProperty MouseOverColorProperty =
      DependencyProperty.Register("MouseOverColor", typeof(string), typeof(FontIconButton), new PropertyMetadata("#888585"));

        /// <summary>
        /// 下拉面板背景颜色
        /// </summary>
        public string DropPanelColor
        {
            get { return (string)GetValue(DropPanelColorProperty); }
            set { SetValue(DropPanelColorProperty, value); }
        }
        public static readonly DependencyProperty DropPanelColorProperty =
     DependencyProperty.Register("DropPanelColor", typeof(string), typeof(FontIconButton), new PropertyMetadata("#DCD7D7"));

    }
}
